import React, { Component } from 'react'

import store from './store'

class Child extends Component {
  render() {
    let { count } = store.getState()
    return (
      <div>
        {count}
        <button onClick={() => store.dispatch({type: 'minus'})}>-</button>
      </div>
    );
  }
}

export default Child;